package com.etfl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 领养人信息表
 */
@Table(name = "lyrxx")
public class Lyrxx implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    /**
     * 儿童ID
     */
    @TableField(value = "et_id")
    private Integer etId;

    /**
     * 领养人姓名
     */
    private String lyrname;

    /**
     * 领养人性别
     */
    private String lyrsex;

    /**
     * 领养人年龄
     */
    private String lyrage;

    /**
     * 领养人联系电话
     */
    private String lyrphone;

    /**
     * 领养人联系地址
     */
    private String lyraddress;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date utime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getEtId() {
        return etId;
    }

    public void setEtId(Integer etId) {
        this.etId = etId;
    }

    public String getLyrname() {
        return lyrname;
    }

    public void setLyrname(String lyrname) {
        this.lyrname = lyrname;
    }

    public String getLyrsex() {
        return lyrsex;
    }

    public void setLyrsex(String lyrsex) {
        this.lyrsex = lyrsex;
    }

    public String getLyrage() {
        return lyrage;
    }

    public void setLyrage(String lyrage) {
        this.lyrage = lyrage;
    }

    public String getLyrphone() {
        return lyrphone;
    }

    public void setLyrphone(String lyrphone) {
        this.lyrphone = lyrphone;
    }

    public String getLyraddress() {
        return lyraddress;
    }

    public void setLyraddress(String lyraddress) {
        this.lyraddress = lyraddress;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getUtime() {
        return utime;
    }

    public void setUtime(Date utime) {
        this.utime = utime;
    }
}
